package com.kkb.spring06.service;

import org.springframework.stereotype.Component;
//目标对象
@Component
public class UserserviceImpl implements Userservice {
    @Override
    public void insertUser(String name) {
        System.out.println("插入操作--------------------------------------");
//        String str = null;
//        str.indexOf(3);
    }

    @Override
    public void updateUser(String name) {
        System.out.println("修改操作--------------------------------------");
    }

    @Override
    public String findUserById(int id) {
        System.out.println("查询操作--------------------------------------");
        return "马云";
    }

    @Override
    public void deleteUserById(int id) {
        System.out.println("删除操作--------------------------------------");
    }
}
